﻿using System.Xml.Serialization;

namespace DotNet.SerializationDemo.Models
{
    [XmlRoot("person")]
    public class Person
    {
        [XmlAttribute("firstName")]
        public string FirstName { get; set; }

        [XmlAttribute("lastName")]
        public string LastName { get; set; }

        [XmlAttribute("age")]
        public int Age { get; set; }

        [XmlElement("address")]
        public Address Address { get; set; }

        [XmlArray("phoneNumber"), XmlArrayItem("phoneNumber")]
        public string[] PhoneNumbers { get; set; }
    }
}
